package cn.kilo.test.Order;

import cn.kilo.domain.service.order.factory.DefaultFactory;
import cn.kilo.infrastructure.persistent.redis.RedissonService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

@SpringBootTest
@RunWith(SpringRunner.class)
public class factory {

    @Resource
    private RedissonService redissonService;

    @Resource
    private DefaultFactory defaultFactory;

    @Test
    public void test(){
        System.out.println(defaultFactory.getChain("guard"));
    }
}
